<template>
	<view class="x-wrapper-doctorCard">
		<view class="content">
			<image :src="doctorInfo.img">
				<view class="name">{{ doctorInfo.name }}</view>
				<view class="title">{{ doctorInfo.title }}</view>
				<view class="department">{{ doctorInfo.depart }}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'doctorCard',
		props: {
			doctorInfo: {
				type: Object,
				required: true
			}
		},
		data() {
			return {


			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.x-wrapper-doctorCard {
		width: 247rpx;
		height: 304rpx !important;
		background: #FFFFFF;
		border-radius: 17rpx;
		display: inline-block;
		text-align: center;
		font-size: 36rpx;
		margin-right: 38rpx;

		.content {
			display: flex;
			flex-direction: column;
			align-items: center;

			image {
				width: 94rpx;
				height: 94rpx;
				margin-top: 28rpx;
			}

			.name {
				font-size: 30rpx;
				font-family: PingFangSC-Semibold, PingFang SC;
				font-weight: 600;
				color: #333333;
				line-height: 43rpx;
				letter-spacing: 2px;

				margin-top: 22rpx;
			}

			.title {
				font-size: 23rpx;
				font-family: PingFangSC-Light, PingFang SC;
				font-weight: 300;
				color: #6F7DA2;
				line-height: 31rpx;
				letter-spacing: 1px;

				margin-top: 6rpx;
			}

			.department {
				width: fit-content;
				min-width: 76rpx !important;
				height: 30rpx;
				background: #FFEFE7;
				border-radius: 15rpx;

				font-size: 21rpx;
				font-family: PingFangSC-Light, PingFang SC;
				font-weight: 300;
				color: #FF7630;
				line-height: 28rpx;
				letter-spacing: 1px;

				margin-top: 16rpx;
				padding-left: 16rpx;
				padding-right: 16rpx;
			}
		}



	}
</style>